package cn.iocoder.yudao.module.resource.dal.mysql.advertisement;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.resource.dal.dataobject.advertisement.ResourceAdvertisementDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 广告 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface ResourceAdvertisementMapper extends BaseMapperX<ResourceAdvertisementDO> {

    default List<ResourceAdvertisementDO> selectListByAdvertiserId(Long advertiserId) {
        return selectList(ResourceAdvertisementDO::getAdvertiserId, advertiserId);
    }

    default List<ResourceAdvertisementDO> selectListByStatus(Integer status) {
        return selectList(ResourceAdvertisementDO::getStatus, status);
    }

}
